﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GalaSoft.MvvmLight;

namespace MODEL
{
    public class Role : ViewModelBase, ICheck
    {       
        public int ID { get; set; }

        public string RoleName { get; set; }

        public string RoleSign { get; set; }

        public string Description { get; set; }

        public bool IsAdmin => "Admin".Equals(this.RoleSign, StringComparison.OrdinalIgnoreCase);

        private bool m_IsChecked;
        public bool IsChecked
        {
            get { return this.m_IsChecked; }
            set { this.m_IsChecked = value; base.RaisePropertyChanged(() => this.IsChecked); }
        }
    }
}
